package com.nulstudio.sppm.Dao;

import com.nulstudio.sppm.Entities.Warehouse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface WarehouseMapper {
   public List<Warehouse> getAllWarehouses();
   public int addWarehouse(Warehouse warehouse);
   public int modifyWarehouse(Warehouse warehouse);
   public int deleteWarehouse(@Param("id") int id);

   public int getLastId();
   public List<Warehouse> getWarehouseById(@Param("id")int id);
}


